<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var cat = {
            name:"miaomiao",
            sayName:function(){
                console.log("我是" + this.name)
            },
            eat:function(food){
                console.log("吃" + food);
            },
            computed:function(n,m){
                return n + m;
            }
        }

        // var result = cat.computed(1,2);
        // console.log(result);

        cat.name = "小黑";
        cat.sayName();
    </script>
</body>
</html>